package conn

import (
	"asterisk_calls/socket"
	"net"
	"strconv"
)

func AstConn() *net.TCPConn {
	ip := "52.68.138.136"
	port := 6058
	addr, err := net.ResolveTCPAddr("tcp", ip+":"+strconv.Itoa(port))
	socket.CheckError(err)
	con, err := net.DialTCP("tcp", nil, addr)
	socket.CheckError(err)
	return con
}
